package com.itheima.mRadix.demo;

public class DemoArray {
    //数据类型[][] 变量名 = new 数据类型[m][n];
    public static void main(String[] args) {
        int[][] arr = new int[3][3];
        /*
        [[I@4554617c

        @ : 分隔符
        554617
         */
        //System.out.println(arr);
        //arr[0][3] = 11;       //ArrayIndexOutOfBoundsException  索引越界异常
        // System.out.println(arr[0][3]);

        int[] smallArray = {111,222,333,444};
        arr[2] = smallArray;
        System.out.println(arr[2][3]);

        int[] arr1 = {11,22,33};
        int[] arr2 = {44,55,66};

        int[][] arr3 = new int[][]{{11,22,33} ,{44,55,66}};
        System.out.println(arr3[0][2]);

        int[][] array = {arr1,arr2};
        System.out.println(array[0][2]);

    }
}
